<?php $this->load->view('layout/header'); ?>
<div id="container">
    <!--查询表单开始-->
    <div id="DivQuery">
        <div id="floatBoxBg" style="filter: alpha(opacity=0); opacity: 0;">
        </div>
        <div id="floatBox" class="floatBox">
            <div id="drag" class="title" onmousedown="DragDialog()">
                <h4>
                    查询</h4>
                <span>关闭</span></div>
            <div class="content">
                <form action="<?php echo b_url('wechat/msg')?>" method="post">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_query">
                        <tr class="table_query_row">
                            <td style="width: 15%" align="right">接收人：</td>
                            <td><input name="ToUserName" type="text" id="ToUserName" /></td>
                        </tr>
                        <tr class="table_query_btn">
                            <td align="right" style="width: 15%"></td>
                            <td>
                                <input type="submit" name="btnQuery" value="查询" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;btnQuery&quot;, &quot;&quot;, false, &quot;&quot;, &quot;SysLimit.aspx&quot;, false, false))" id="btnQuery" />
                                <input type="button" value="返回" onclick="javascript:HiddenSearchDialog();" />
                            </td>
                            <td align="right" style="width: 15%"></td>
                            <td></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </div>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_op">
        <tr>
            <td>
                操作选项：
                <a onclick="javascript:return checkDel(this);" name="weixinMsgID" href="javascript:;)" src="<?php echo b_url('wechat/delete_info/msg/weixinMsgID/weixinmsg/')?>">删除微信消息</a>
                <a href="javascript:SearchDialog()">查询微信消息</a>
            </td>
        </tr>
    </table>
    <!--操作选项结束-->
    <!--列表开始-->
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_list" id="TbList">
        <tr class="table_list_title">
            <td style="width: 2%">
                <input type="checkbox" name="checkbox" value="checkbox" onclick="javascript:checkAll(this,'weixinMsgID')" />
            </td>
            <td style="width: 2%" onclick="javascript:GoTo('?OrderKey=SysLimitID&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                自动编号
            </td>
            <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=LimitName&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                接收人
            </td>
            <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=LimitValue&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                发送人
            </td>
            <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AdminID&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                消息类型
            </td>
            <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AdminID&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                消息内容
            </td>
            <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                消息创建时间
            </td>
           <!-- <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=IsClose&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                操作
            </td>-->
        </tr>
        <?php foreach($list as $k=>$v) : ?>
            <tr class="table_list_row_normal">
                <td style="width: 2%">
                    <input name="weixinMsgID" type="checkbox"  value="<?php echo $v['weixinMsgID']?>" />
                </td>
                <td style="width: 2%">
                    <?php echo $v['weixinMsgID']?>
                </td>
                <td style="width: 10%">
                    <?php echo $v['ToUserName']?>
                </td>
                <td style="width: 10%">
                    <?php echo $v['FromUserName']?>
                </td>
                <td style="width: 10%">
                    <?php
                        if($v['MsgType'] == 'text'){
                            echo '文本消息';
                        }else if($v['MsgType'] == 'image'){
                            echo '图片消息';
                        }
                    ?>
                </td>
                <td style="width: 10%">
                    <?php echo $v['TxtContent']?>
                </td>
                <td style="width: 10%">
                    <?php echo $v['CreateTime']?>
                </td>
                <!--<td style="width: 10%">
                    <span style="color:red;">已逾期</span>
                </td>-->
            </tr>
        <?php endforeach ; ?>
    </table>
    <!--列表结束-->
    <!--分页开始-->
    <?php $pagination->show();?>
    <!--分页结束-->
</div>
<script src="/static/bk/js/table.js" type="text/javascript"></script>
<?php $this->load->view('layout/footer'); ?>